package communicationModule;

import java.util.ArrayList;
import java.util.List;

/**
 * An object of this class is used to report the result of a sent message by the
 * client. The message sent is coupled with any group participants that
 * generated exceptions during the send operation. Meaning that those group
 * members were unreachable during the send.
 * 
 */
public class SendResult {

    private final MessageObject msg;
    private final List<String> badRecvrs;

    public SendResult(final MessageObject msg, final ArrayList<String> badRecvrs) {
        this.badRecvrs = badRecvrs;
        this.msg = msg;
    }

    public MessageObject getMsg() {
        return msg;
    }

    public List<String> getBadRecvrs() {
        return badRecvrs;
    }

}
